package com.example.paging.network

import com.example.paging.entity.HomeVO
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

interface ArticleService {

    @GET(value = "/article/list/{page}/json")
    fun getArticlePage(@Path("page") page: Int = 0): Call<HomeVO>

    /**
     * 获取首页文章列表
     */
    @GET("article/list/{page}/json")
    suspend fun getHomeArticles(@Path("page") page: Int): HomeVO
}